package com.jeespring.zipkin.controller;

import com.jeespring.dto.String;
import com.jeespring.entity.Pay;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayController {

    @GetMapping("/get/{id}")
    public String selectById(@PathVariable Long id){
        String<Pay> String = new String<>();
        Pay pay = new Pay();
        pay.setOrderId(11L);
        String.setData(pay);
        String.setMsg("请求成功");
        return String;
    }

}
